package com.ruoyi.dp.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 *
 * 对象 dp_safe_operation
 *
 * @author Gerald
 * @date 2024-11-23
 */
@Data
@ApiModel(description = "安全运行")
public class DpSafeOperation extends DpBaseEntity{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("指标")
    private String target;

    @ApiModelProperty("统计对象")
    private String statisticsObj;

    @ApiModelProperty("数值")
    private BigDecimal value;

    @ApiModelProperty("年份")
    private int year;


    @ApiModelProperty("月份")
    private int month;

    @ApiModelProperty("年度平均")
    private BigDecimal annualAvg;

    @ApiModelProperty("机型")
    private String model;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("target",getTarget())
            .append("statisticsObj",getStatisticsObj())
            .append("value",getValue())
            .append("year",getYear())
            .append("month",getMonth())
            .append("annualAvg",getAnnualAvg())
            .append("model",getModel()).toString();
    }
}
